package com.gdyx.app.web.svc.impl;

import com.gdyx.app.web.dao.MpsRoleOptDao;
import com.gdyx.app.web.model.MpsRoleOpt;
import com.gdyx.app.web.svc.MpsRoleOptSvc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Y_Coffee on 2017/8/3.
 */
@Service
public class MpsRoleOptSvcImpl implements MpsRoleOptSvc {
    @Autowired
    MpsRoleOptDao dao;

    @Override
    public void save(MpsRoleOpt o) {
        dao.save(o);
    }

    @Override
    public void saveOrUpdate(MpsRoleOpt o) {
        dao.saveOrUpdate(o);
    }

    @Override
    public void delete(String id) {
        dao.delete(id);
    }

    @Override
    public void update(MpsRoleOpt o) {
        dao.update(o);
    }

    @Override
    public MpsRoleOpt findMpsRoleOptById(String id) {
        return dao.findMpsRoleOptById(id);
    }

    @Override
    public int count(Map<String, Object> map) {
        return dao.count(map);
    }

    @Override
    public List<MpsRoleOpt> findMpsRoleOpts(Map<String, Object> map) {
        return dao.findMpsRoleOpts(map);
    }

    @Override
    public List<MpsRoleOpt> findMpsRoleOptByRid(String roleId) {
        return dao.findMpsRoleOptByRid(roleId);
    }
}
